Companion

object Companion

Functions

Link copied to clipboard
fun <T, F : ValidatedField<T>> F.withListener(listener: Consumer<F>): F

Attaches a listener to the receiver field. This listener will be called any time the field is written to ("set"). accept, validateAndSet, setAndUpdate and so on will all call the listener.